package study.stack;

public class ArrayStackDemo {
    public static void main(String[] args) {
        ArrayStack stack = new ArrayStack(3);

        System.out.println("进桟：");
        stack.push(11);
        stack.push(22);
        stack.push(33);

        stack.print();

        System.out.println("出栈：");
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
    }
}
